﻿<!DOCTYPE html>
<html class="high">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title |简单快捷的提取B站视频封面</title>
    <script src="~/Scripts/jquery-2.1.1.min.js"></script>
    <script src="~/Content/JSPlugin/clipboard.min.js"></script>
    <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
    <link href="~/Content/materialize/css/materialize.min.css" rel="stylesheet" />
    <link href="~/Content/animate.css" rel="stylesheet" />
    <script src="~/Scripts/materialize/materialize.min.js"></script>
    <script src="~/Content/JSPlugin/referrer-killer.js"></script>
    <link href="/hj.png" rel="shortcut icon" />
    <link href="~/Content/CSS/Allcss.css" rel="stylesheet" />
</head>
<body class="high">
    <nav>
        <div class="nav-wrapper row">
            <div class="col s6 m9 l3 " style="font-size: 20px;"><a href="http://www.bilibiliup.cn">下面</a></div>
            <div class="col s6 m3 offset-l6 l3 nav-wrapper input-field left paddingzero" id="searchDiv">
                <input id="search" type="search" value="" placeholder="无须点击 直接输入号码或CTRL+V粘贴 回车搜索" required onclick="isAllText()">
                <label class="" for="search"><i class="material-icons">search</i></label>
            </div>
        </div>
    </nav>
    <div class="container">
        @RenderBody()
    </div>
</body>
</html>
<script type="text/javascript">
    function isAllText() {
        $("#search").select();
    }
    $(function () {
        isOneClick = true;
        $(document).keypress(function (e) {
            if (isOneClick) {
                $("#search").focus();
                $("#search").select();
                isOneClick = false;
            }
            if (e.keyCode == 13) {
                isOneClick = true;
                $(this).blur();
                done();
            }
        })
        $(document).keydown(function (e) {
            if (e.ctrlKey && e.keyCode == 86) {
                $("#search").val("").focus();
                setTimeout(function () {
                    done();
                }, 30);
            };
        })
        setTimeout(function () {
            if ($(window).width() < 850) {
                $("#search").attr("placeholder", "点击输入号码");
            }
        }, 100);
    });

</script>